/**
 * @description 检查数据库连接
 */

const { get } = require('./_server')

test('数据库连接', async () => {
  const { data, errno } = await get('/ping')

  const { redisConn, mongodbConn } = data

  expect(errno).toBe(0)
  expect(redisConn).toBe(true)
  expect(mongodbConn).toBe(true)
})
